{% extends 'base.html' %}

{% block title %}登录{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static',filename='css/login_regist.css') }}">
{% endblock %}

{% block main %}
    <form action="" method="POST">
        <div class="form-container">
            <h3 class="page-title">登录</h3>
            <div class="form-group">
                <input type="text" class="form-control" name="telephone" placeholder="手机号">
            </div>
            <div class="form-group">
                <input type="password" class="form-control" name="password" placeholder="密码">
            </div>
            <div class="form-group"><input type="submit" class="btn btn-primary btn-block" value="登录"></div>
            <div style="text-align: center;color: red;">
                {# 引入flask信息 #}
                {% for message in get_flashed_messages() %}
                    <p>{{ message }}</p>
                 {% endfor %}
            </div>
        </div>
    </form>

{% endblock %}